import { TaskModel } from '../model/task';
import { NotFound } from 'lin-mizar';
class TaskDao {
  async getTask (id) {
    const info = await TaskModel.findByPk(id);
    if (!info) {
      throw new NotFound({
        code: 10241
      });
    }
    return info;
  }
}

export { TaskDao };
